/*
	Designer: DaBai 
	E-mail: jamesbaicn@gmail.com
	Last Modified: #2010-05-30 23:00#
	License: MIT LICENSE
	Version: 1.0

	PWM Function
*/
#ifndef __drivepwm__
#define __drivepwm__
extern unsigned char pca0_Count,pca1_Count;
extern bit pwmRunning;
sbit CW0 = P1^1;
sbit CW1 = P1^2;
void InitPWM(void);
void SetPWM(bit dt0, unsigned char ch0_step,bit dt1, unsigned char ch1_step);
void timer0(void);
void PCA(void);

#endif